package com.google.denta.entity;

import java.util.List;

/**
 * The class group.
 * @author Ihar_Padaliakin
 *
 */
public final class Group extends Entity {

    /** serialVersionUID.*/
    private static final long serialVersionUID = 1L;
    /**
     * Group roles.
     */
    private List<Role> roles;

    /**
     * Default constructor for group.
     */
    public Group() {
        super();
    }

    /**
     * Constructor for group.
     * @param name - name of the group.
     */
    public Group(final String name) {
        this.setName(name);
    }

    /**
     * @return the list group roles
     */
    public List<Role> getRoles() {
        return roles;
    }

    /**
     * Setter for group roles.
     * @param roles
     *            the roles to set
     */
    public void setRoles(final List<Role> roles) {
        this.roles = roles;
    }

}
